import request from "@/request/index.js"
export function index(type){
	let url = '/api/book/index'
	let params = {type}
	return request.get(url,{params})
}

export function vote(id){
	let url = '/api/book/vote'
	let data = {id}
	data.Loading = true
	return request.post(url,data)
}